#include "Vysyx_22050369_cpu.h"
#include <verilated.h>     
#include "verilated_vcd_c.h"
#include "../common.h"
typedef struct {
    int state;
    uint64_t halt_pc;
    uint32_t halt_ret;
} NPCState;

typedef struct {
    uint64_t gpr[32];
    uint64_t pc;
} CPU_state;

enum { NPC_RUNNING, NPC_STOP, NPC_END, NPC_ABORT, NPC_QUIT };

void creat_Context();

void rst();

void exec();

void delete_Context();

int check_state();